import { Injectable } from '@angular/core';
import { Storage } from '@ionic/storage';
import {HttpClient} from "../../../../providers/httpClient";
import {Config} from "../../../../providers/config";
import {Common} from "../../../../providers/common";

@Injectable()
export class IrpSchedulerListervice {
	constructor(
		public httpClient: HttpClient,
		public config: Config,
    public storage: Storage,
    public common: Common
		) { }

  getIRMScheduler(params) {
	  let postBody = {
      "module": "OAServer",
      "method": "getIRMScheduler",
      "params": {
        "startdate": params.startdate,
        "enddate": params.enddate,
        "pageIndex": params.pageIndex,
        "pageSize": params.pageSize
      }
    };

	  return this.httpClient.post(postBody, {
	    isShowLoading: true
    });
  }
}
